package com.example.demo.controller;

import com.example.demo.entity.TimeSheet;
import com.example.demo.service.TimeSheetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
@RestController
@CrossOrigin
public class TimeSheetController {

    @Autowired
    TimeSheetService timeSheetService;

    @GetMapping("/timeSheet")
    public List<TimeSheet> select(){
        return timeSheetService.select();
    }

}
